package com.hk.patterntrains.factorypattern;

public class ChicagoPizzaStore extends PizzaStore {
    @Override
    public Pizza createPizza(String pizzaType) {
        Pizza pizza = null;
        if(pizzaType.equals("TypeA")){
            pizza = new ChicagoPizzaA("NameA","TypeA");
        }else {
            pizza = new ChicagoPizzaB("NameB","TypeB");
        }

        return pizza;
    }
}
